package o;

import android.view.View;
import com.huawei.support.widget.HwSearchView;
import java.lang.ref.WeakReference;

public class fmk extends SkinAttr {

    static final class a extends fkz<SkinAttr, Integer> {
        private WeakReference<HwSearchView> ˊ;

        public /* synthetic */ void ॱ(Object obj) {
            ˎ((Integer) obj);
        }

        private a(HwSearchView hwSearchView) {
            this.ˊ = new WeakReference(hwSearchView);
        }

        public void ˎ(Integer num) {
            HwSearchView hwSearchView = (HwSearchView) this.ˊ.get();
            if (hwSearchView != null) {
                hwSearchView.setSearchButtonTextColor(num.intValue());
            }
        }
    }

    public fmk() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwSearchView) {
            HwSearchView hwSearchView = (HwSearchView) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new a(hwSearchView)).ॱ(z);
            }
        }
    }
}
